package com.shop.cereshop.business.dao.dl;

import com.shop.cereshop.business.dl.logic.domian.CareShopNews;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CareShopNewsDAO {
    int deleteByPrimaryKey(Long newsId);

    int insert(CareShopNews record);

    int insertSelective(CareShopNews record);

    CareShopNews selectByPrimaryKey(Long newsId);

    int updateByPrimaryKeySelective(CareShopNews record);

    int updateByPrimaryKey(CareShopNews record);

    CareShopNews selectByPrimaryKey2(@Param("newsId") Long newsId, @Param("title") String title);

    void updateByproductId(Long productId);

    void updateBynewsId(Long newsId);

    Integer getForward(Long newsId);

    Integer getView(Long newsId);
}